projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d0ae72
)
(viqr-pre-write-conversion): Make it work
author
Kenichi Handa
<handa@m17n.org>
Mon, 12 May 1997 07:00:28 +0000
(07:00 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Mon, 12 May 1997 07:00:28 +0000
(07:00 +0000)
for the case the arg FROM is a string.
lisp/language/viet-util.el
patch
|
blob
|
history
diff --git
a/lisp/language/viet-util.el
b/lisp/language/viet-util.el
index 356a130efc31bfaa8c653a3cb6c9736b268975bf..1da3de12a4afee2ef180d3998eb7f9fe719a5698 100644
(file)
--- a/
lisp/language/viet-util.el
+++ b/
lisp/language/viet-util.el
@@
-275,8
+275,12
@@
positions (integers or markers) specifying the stretch of the region."
(work-buf (get-buffer-create " *viet-work*")))
(set-buffer work-buf)
(erase-buffer)
- (insert-buffer-substring old-buf from to)
- (viet-encode-viqr-region (point-min) (point-max))))
+ (if (stringp from)
+ (insert from)
+ (insert-buffer-substring old-buf from to))
+ (viet-encode-viqr-region (point-min) (point-max))
+ ;; Should return nil as annotations.
+ nil))
;;;
(provide 'language/viet-util)